package com.zh.api.controller.servicer;

import com.zh.common.utils.ResultVO;
import com.zh.servicer.domain.ServiceRoleDO;
import com.zh.servicer.service.ServiceRoleService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by caogang on 2019/5/28.
 */
@Controller
@RequestMapping("/goods")
@Api("服务商人员角色")
public class ServicerStaffRoleController {


    @Autowired
    private ServiceRoleService serviceRoleService;


    @ResponseBody
    @ApiOperation("获取服务商人员角色")
    @GetMapping("/getServicerStaffRole")
    ResultVO getAllRole() {
        List<ServiceRoleDO> roles = serviceRoleService.list();
        return ResultVO.success(roles);
    }


}
